﻿using CSLib.Imaging;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSLib.UI
{
	public class ImageViewer
	{
		/// <summary>
		/// 指定した画像の表示。
		/// </summary>
		/// <param name="img"></param>
		public static void Show(Image img)
		{
			ImageViewerForm form = new ImageViewerForm();
			form.pictureBox.Image = img;
			form.pictureBox.Size = img.Size;
			form.ShowDialog();
		}

		/// <summary>
		/// 指定した画像の表示。
		/// </summary>
		/// <param name="bmpEx"></param>
		public static void Show(BitmapEx bmpEx)
		{
			Show(bmpEx.Bmp);
		}
	}
}
